<template>
  <div id="app">
    <div style="margin-bottom:50px">
      <router-view/>
    </div>
      
    <!-- @change="onChange" -->
    <!-- v-show="$store.state.isShowBar" -->
    <van-tabbar 
    v-model="active"
    >
    <van-tabbar-item icon="home-o" to="/home">个人中心</van-tabbar-item>
    <van-tabbar-item icon="search" to="/addevent">事件上报</van-tabbar-item>
    </van-tabbar>
  </div>
</template>
<script>
export default {
  data() {
    return{
      active: 0
    }
  },
  methods:{
    // onChange(){
    //   sessionStorage.setItem("active",this.active)
    // }
  },
  mounted(){
    // this.active=parseInt(sessionStorage.getItem("active"))
  }
}
</script>

<style>

</style>
